package com.sv.controller;

import java.sql.SQLException;
import java.util.List;

import org.springframework.ui.Model;

import com.sv.dao.PageInfoDaoImpl;
import com.sv.model.PageInfo;
import com.sv.web.ListSqlIdParam;
import com.sv.web.list.ListPageInitializaion;

public class BaseController {

    public List getPageListData(ListPageInitializaion listPageInitializaion,int curPage,int perPage,Model model) throws SQLException{
       PageInfo page =  listPageInitializaion.initPage(curPage, perPage, model);
        
        PageInfoDaoImpl dao = new PageInfoDaoImpl();
        
        return dao.selectListRecords(page);
    }
}
